<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AdminUser extends Model
{
    protected $table = 'admin_users';

    /**
     * @param $id
     * @return mixed
     * 获取用户名
     */
    public function getName($id)
    {
        return $this->where('id', $id)->value('name');
    }
}
